<template>
  <div>
<table border="">
  <tr>
    <th>编号</th>
    <th>品牌名称</th>
    <th>创立时间</th>
    <th>操作</th>
  </tr>
  <tr v-show="isOk" id="isOk">
    <th colspan=4>没有数据了！</th>
  </tr>
  <tr  v-for="item in code3" :key="item.id">
    <th>{{item.id}}</th>
    <th>{{item.name}}</th>
    <th>{{item.time}}</th>
    <th><button @click="del3(item.id)">删除</button></th>
  </tr>
</table>
  </div>
</template>

<script>

export default {
  props:['code3','isOk'],
  methods:{
   del3(id){
    this.$emit('del33',id)
   }
  },
data(){
  return {
  }
}
}
</script>

<style>
table{
  width: 400px;
}
#isOk{
  text-align: center;
}
</style>